From: Florian Müllner Date: Mon, 20 May 2024 18:26:42 +0000 (+0200) Subject: workspaceThumbnails: Update target scale when fully unexpanded X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~226^2^2~128 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6fa6dd6abb9912b3f74357909ecbd20946d6663a;p=gnome-shell.git workspaceThumbnails: Update target scale when fully unexpanded We currently only update the scale when fully expanded. In order to fix the initial expand transition, also update the scale when fully unexpanded. Part-of: --- diff --git a/js/ui/workspaceThumbnail.js b/js/ui/workspaceThumbnail.js index 4e490478b..143d1cd75 100644 --- a/js/ui/workspaceThumbnail.js +++ b/js/ui/workspaceThumbnail.js @@ -1266,7 +1266,7 @@ export const ThumbnailsBox = GObject.registerClass({ // Compute the scale we'll need once everything is updated, // unless we are currently transitioning - if (this._expandFraction === 1) { + if (this._expandFraction === 0 || this._expandFraction === 1) { const [, natWidth] = this.get_preferred_width(-1); const [, natHeight] = this.get_preferred_height(natWidth); const totalSpacing = (nWorkspaces - 1) * spacing;